package com.fage.beananno;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author lin
 * @version 1.0
 * @date 2021/4/11 14:05
 * @Description TODO
 */
@Configuration
@ComponentScan(basePackageClasses = Car.class)
public class TestAnno_Bean {

   // @Bean(initMethod = "initMethod", destroyMethod = "destroyMethod")
    public Car car() {
        return new Car();
    }
}
